define('formRecruit',['text!../tpl/form-recruit.html','tool','common','bootstrap'],function(Template,tool,common){
    var App ={
    	template:Template,
    	mixins: [tool.toor,common.common],
    	mounted:function(){
    		var _this=this;
    	},
    	data:function(){
    		return{
    			money:0,
    			submitJson:{
				    "component": [
					    {
	    			   	  "name":"需求部门",
	    			   	  "value":''
	    			   },
	    			   {
	    			   	   "name": "需求店铺",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "需求岗位",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "岗位编制",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "现有人数",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "需求人数",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "直接上级",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "直管下属",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "希望到岗日期",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "多行输入框",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "建议岗位职级",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "建议薪酬",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "建议考核方式",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "招聘原因",
					       "value": ''
	    			   },
	    			   {
	    			   	   "name": "招聘方式",
					       "value": ''
	    			   }
				    ]
				}
    			
    		};
    	},
    	watch:{
    		submitJson:
    		{
    			handler: function (val, oldVal) {
    				if(val.component[8].value)
    				{
    					val.component[8].value=new Date(val.component[8].value).Format('yyyy-MM-dd');
    				};
    			},
                deep: true
    		}
    	
    	},
    	methods:
    	{
    		
    	}
    };
    return {
        app:App       
    };
});